]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Disable screencasts when locked
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 21 Aug 2022 18:59:25 +0000 (20:59 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 22 Aug 2022 14:15:17 +0000 (14:15 +0000)
commitaa7bc4cfa387735bb91247e644d950357c7af0b6
treee10597241ec0a799083a7f41d2dad5459c7f9724
parent6050229aa1627af73c71f18dc200c48a5cfa959c
screenshot: Disable screencasts when locked

It is currently not possible to bring up the screenshot UI while
locked, but that is about to change.

We still don't want screencasts in that case, because they are
much easier to abuse for filling up someone else's disk.

That restriction is enforced by inhibiting remote access in the
backend, so trying to create a screencast session will fail anyway.
Still, not offering an action that is unavailable is better than
having it fail silently, so do exactly that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2439>
data/theme/gnome-shell-sass/widgets/_screenshot.scss
js/ui/screenshot.js